package com.matrix.index.ui.anime.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.matrix.basecore.utils.glide.GlideUtil
import com.matrix.index.R

class AnimPreviewAdapter(layoutResId: Int, data: MutableList<String>) :
    BaseQuickAdapter<String, BaseViewHolder>(layoutResId, data), LoadMoreModule {

    override fun convert(holder: BaseViewHolder, item: String) {
//        GlideUtil.loadImage(item,context,holder.getView(R.id.iv_cover),false)

        GlideUtil.loadRoundImage(
            item,
            context,
            holder.getView(R.id.iv_cover),
            6,
            R.mipmap.icon_default_bg
        )
        "https://api.isoyu.com/mm_images.php"
        "https://cdn.seovx.com/?mom=302"
//        GlideUtil.loadRoundImage(
//            "https://api.isoyu.com/mm_images.php",
//            context,
//            holder.getView(R.id.iv_cover),
//            6,
//            R.mipmap.icon_default_bg
//        )
    }
}